package com.mayisoftware.mayioa.business.statistic.impl.controller;

import com.mayisoftware.mayioa.business.statistic.api.domain.*;
import com.mayisoftware.mayioa.business.statistic.api.service.IStatisticService;
import com.mayisoftware.mayioa.common.impl.utils.StringUtils;
import com.mayisoftware.mayioa.platform.api.domain.SysDept;
import com.mayisoftware.mayioa.platform.api.domain.SysDictData;
import com.mayisoftware.mayioa.platform.api.service.ISysDeptService;
import com.mayisoftware.mayioa.platform.api.service.ISysDictDataService;
import com.mayisoftware.mayioa.platform.api.service.ISysUserService;
import com.mayisoftware.mayioa.platform.impl.web.base.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 骨干统计控制器
 */
@Controller
@RequestMapping("/statistic/bg")
public class StatisticBGController extends BaseController{

    /**
     * 前缀
     */
    private String prefix = "statistic/bg";

    @Autowired
    private IStatisticService statisticService;

    /**
     * 统计页面
     */
    @RequiresPermissions("statistic:bg:view")
    @GetMapping()
    public String list(ModelMap mmap)
    {
        mmap.put("seriesData",statisticService.selectStatisByRegion());
        mmap.put("geoCoordMap",statisticService.getGeoCoordMap());
        return prefix + "/bg";
    }

}
